package de.fuberlin.inf.alp3.ue06;

public class FoldableTest {
    public static void main(String[] args) {
        LinkedList<Double> list = new LinkedList<Double>();
        list.add(1.0);
        list.add(2.0);
        list.add(3.0);
        System.out.println(list.fold(new Product(), 4.0));
    }
}